import request from '@/utils/request'

// 查询分销员收入列表
export function listDistributorincome(query) {
  return request({
    url: '/distributorIncome/distributorincome/list',
    method: 'get',
    params: query
  })
}

// 查询分销员收入详细
export function getDistributorincome(distributorId) {
  return request({
    url: '/distributorIncome/distributorincome/' + distributorId,
    method: 'get'
  })
}

// 新增分销员收入
export function addDistributorincome(data) {
  return request({
    url: '/distributorIncome/distributorincome',
    method: 'post',
    data: data
  })
}

// 修改分销员收入
export function updateDistributorincome(data) {
  return request({
    url: '/distributorIncome/distributorincome',
    method: 'put',
    data: data
  })
}

// 删除分销员收入
export function delDistributorincome(distributorId) {
  return request({
    url: '/distributorIncome/distributorincome/' + distributorId,
    method: 'delete'
  })
}
